﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BEGDC.CC.Web.Workflow.Dialog
{
    public partial class Forward : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hidCommentRequired.Value = Resources.Workflow.CommentRequired;
                hidForwardTargetRequired.Value = Resources.Workflow.ForwardTargetRequired;
                hidActivityName.Value = ActivityName;
            }
        }

        private int ProcInstId
        {
            get
            {
                int procInstId;
                bool res = int.TryParse(Request.QueryString["ProcInstID"], out procInstId);
                if (res) return procInstId;
                return -1;
            }
        }

        private string ActivityName
        {
            get
            {
                return Request.QueryString["ActivityName"];
            }
        }
    }
}
